<script>
import KtTable from "/src/components/node-kantboot/components/KtTable/KtTable.vue";
// import columns from "./config/columns.config.js"

let columns = [
  {
    label: "ID",
    field: "id",
    type: "number",
    isSort: true,
    orderBy: "desc",
    isId: true,
    isSearch: true,
    isEdit: false,
    isHide: true,
    searchSetting: {
    }
  },
  {
    label: "分组编码",
    field: "groupCode",
    type: "text",
    width: "200px",
    // 是否可编辑
    isEdit: true,
    isSearch: true,
    isAdd: true,
  },
  {
    label: "编码",
    field: "code",
    type: "text",
    width: "200px",
    // 是否可编辑
    isEdit: true,
    isSearch: true,
    isAdd: true,
  },
  {
    label: "值",
    field: "value",
    type: "text",
    width: "200px",
    // 是否可编辑
    isEdit: true,
    isSearch: true,
    isAdd: true,
  },
  {
    label: "英文值",
    field: "valueEn",
    type: "text",
    width: "200px",
    // 是否可编辑
    isEdit: true,
    isSearch: true,
    isAdd: true,
  }
];
export default {
  components: {KtTable},
  data() {
    return {
      columns
    }
  },
  mounted() {
  },
  methods: {
  }
}
</script>

<template>
  <kt-table
      :columns="columns"
      requestUri="/system-dict-web/admin/dict"
      ref="ktTable">
    <template #operationAppend="{row}">
      <el-button type="primary" @click="toI18nEdit(row)">{{$i18n.zhToGlobal("国际化")}}</el-button>
    </template>
  </kt-table>
</template>

<style scoped>

</style>